package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;

import java.util.Random;

/**
 * 描述：对于集合的处理，要从集合焦点转移到流处理
 */
public class Randoms {
    public static void main(String[] args) {
        new Random(47)
                //范围是5-20
                .ints(5, 20)
                //不重复
                .distinct()
                //size is 7 front 7 ele
                .limit(7)
                //order
                //outPut
                .sorted()
                .forEach(System.out::println);
    }
}
